home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / M-Md / MacWedding.cpt / MacWedding™ / HomeChurch / card_4583.txt < prev    next >
Text File  |  1992-09-15  |  10KB  |  453 lines

  1. -- card: 4583 from stack: in
  2. -- bmap block id: 5303
  3. -- flags: 4000
  4. -- background id: 4724
  5. -- name: Budget
  6. ----- HyperTalk script -----
  7. on openCard
  8.   show cd fld 1
  9.   wait for 3 seconds
  10.   Repeat 4 times
  11.     set highlite of btn 2 to true
  12.     set highlite of btn 2 to false
  13.   end Repeat
  14.   lock screen
  15.   hide cd fld 1
  16.   unlock screen with dissolve
  17. end openCard
  18.  
  19.  
  20. -- part 4 (button)
  21. -- low flags: 80
  22. -- high flags: A000
  23. -- rect: left=3 top=299 right=317 bottom=43
  24. -- title width / last selected line: 0
  25. -- icon id / first selected line: 0 / 0
  26. -- text alignment: 1
  27. -- font id: 0
  28. -- text size: 9
  29. -- style flags: 8192
  30. -- line height: 12
  31. -- part name: Change
  32. ----- HyperTalk script -----
  33. on mouseUp
  34.   lock screen
  35.   Repeat with x = 5 to 10
  36.     show cd btn x
  37.   end Repeat
  38. end mouseUp
  39.  
  40.  
  41.  
  42. -- part 5 (button)
  43. -- low flags: 00
  44. -- high flags: A000
  45. -- rect: left=5 top=299 right=317 bottom=43
  46. -- title width / last selected line: 0
  47. -- icon id / first selected line: 0 / 0
  48. -- text alignment: 1
  49. -- font id: 0
  50. -- text size: 9
  51. -- style flags: 8192
  52. -- line height: 12
  53. -- part name: Done
  54. ----- HyperTalk script -----
  55. on mouseUp
  56.   beep
  57. end mouseUp
  58.  
  59.  
  60.  
  61. -- part 7 (button)
  62. -- low flags: 00
  63. -- high flags: A000
  64. -- rect: left=2 top=318 right=337 bottom=42
  65. -- title width / last selected line: 0
  66. -- icon id / first selected line: 0 / 0
  67. -- text alignment: 1
  68. -- font id: 0
  69. -- text size: 9
  70. -- style flags: 8192
  71. -- line height: 12
  72. -- part name: %
  73. ----- HyperTalk script -----
  74. on mouseUp
  75.   beep
  76. end mouseUp
  77.  
  78.  
  79.  
  80. -- part 8 (button)
  81. -- low flags: 80
  82. -- high flags: A000
  83. -- rect: left=3 top=318 right=337 bottom=42
  84. -- title width / last selected line: 0
  85. -- icon id / first selected line: 0 / 0
  86. -- text alignment: 1
  87. -- font id: 0
  88. -- text size: 9
  89. -- style flags: 8192
  90. -- line height: 12
  91. -- part name: $'s
  92. ----- HyperTalk script -----
  93. on mouseUp
  94.   lock screen
  95.   set cursor to watch
  96.   put fld 3 into fld 12
  97.   put fld 4 into fld 18
  98.   put fld 5 into fld 24
  99.   put fld 6 into fld 30
  100.   Repeat with x = 44 to 75
  101.     hide fld x
  102.   end Repeat
  103.   hide cd btn 4
  104.   show cd btn 3
  105.   hide bkgnd btn 14
  106.   show bkgnd btn 15
  107.   unlock screen with dissolve
  108.   set cursor to browse
  109. end mouseUp
  110.  
  111.  
  112.  
  113. -- part 14 (field)
  114. -- low flags: 81
  115. -- high flags: 0002
  116. -- rect: left=291 top=65 right=120 bottom=442
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 0 / 0
  119. -- text alignment: 1
  120. -- font id: 0
  121. -- text size: 10
  122. -- style flags: 8192
  123. -- line height: 13
  124. -- part name: 
  125.  
  126.  
  127. -- part 21 (button)
  128. -- low flags: 80
  129. -- high flags: 0004
  130. -- rect: left=1 top=223 right=300 bottom=125
  131. -- title width / last selected line: 0
  132. -- icon id / first selected line: 0 / 0
  133. -- text alignment: 1
  134. -- font id: 0
  135. -- text size: 9
  136. -- style flags: 0
  137. -- line height: 12
  138. -- part name: 
  139.  
  140.  
  141. -- part 22 (button)
  142. -- low flags: 80
  143. -- high flags: A004
  144. -- rect: left=4 top=227 right=246 bottom=122
  145. -- title width / last selected line: 0
  146. -- icon id / first selected line: 0 / 0
  147. -- text alignment: 1
  148. -- font id: 0
  149. -- text size: 9
  150. -- style flags: 0
  151. -- line height: 12
  152. -- part name: Wedding Reception
  153. ----- HyperTalk script -----
  154. on mouseUp
  155.   ask "Please Enter Amount" with "(e.g 500, 1000, 10000, etc ...)"
  156.   if it is empty then exit mouseUp
  157.   if it is "(e.g 500, 1000, 10000, etc ...)" then
  158.     beep
  159.     answer "You didn't enter a number!" with "Oops"
  160.     exit mouseUp
  161.   end if
  162.   lock screen
  163.   push cd
  164.   put it into dollar6
  165.   put empty into fld 2
  166.   put it into fld 6
  167.   put it into fld 30
  168.   Repeat with x = 3 to 6
  169.     add fld x to fld 2
  170.   end Repeat
  171.   go cd Reception1 of stack Eventcards
  172.   put dollar6 into fld 14
  173.   pop cd
  174.   Repeat with x = 5 to 10
  175.     hide cd btn x
  176.   end Repeat
  177.   unlock screen with dissolve
  178.   put 0 into sumUp
  179.   Repeat with x = 25 to 29
  180.     add fld x to sumUp
  181.   end Repeat
  182.   if sumUp <> fld 30 then answer "Please correct RECEPTION allocations!"
  183.   beep
  184. end mouseUp
  185.  
  186.  
  187.  
  188. -- part 23 (button)
  189. -- low flags: 80
  190. -- high flags: A004
  191. -- rect: left=4 top=244 right=263 bottom=122
  192. -- title width / last selected line: 0
  193. -- icon id / first selected line: 0 / 0
  194. -- text alignment: 1
  195. -- font id: 0
  196. -- text size: 9
  197. -- style flags: 0
  198. -- line height: 12
  199. -- part name: Wedding Ceremony
  200. ----- HyperTalk script -----
  201. on mouseUp
  202.   ask "Please Enter Amount" with "(e.g 500, 1000, 10000, etc ...)"
  203.   if it is empty then exit mouseUp
  204.   if it is "(e.g 500, 1000, 10000, etc ...)" then
  205.     beep
  206.     answer "You didn't enter a number!" with "Oops"
  207.     exit mouseUp
  208.   end if
  209.   lock screen
  210.   push cd
  211.   put it into dollar5
  212.   put empty into fld 2
  213.   put it into fld 5
  214.   put it into fld 24
  215.   Repeat with x = 3 to 6
  216.     add fld x to fld 2
  217.   end Repeat
  218.   go cd Ceremony1 of stack Eventcards
  219.   put dollar5 into fld 14
  220.   pop cd
  221.   Repeat with x = 5 to 10
  222.     hide cd btn x
  223.   end Repeat
  224.   unlock screen with dissolve
  225.   put 0 into sumUp
  226.   Repeat with x = 19 to 23
  227.     add fld x to sumUp
  228.   end Repeat
  229.   if sumUp <> fld 24 then answer "Please correct CEREMONY allocations!"
  230.   beep
  231.  
  232. end mouseUp
  233.  
  234.  
  235.  
  236. -- part 24 (button)
  237. -- low flags: 80
  238. -- high flags: A004
  239. -- rect: left=4 top=261 right=280 bottom=122
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 1
  243. -- font id: 0
  244. -- text size: 9
  245. -- style flags: 0
  246. -- line height: 12
  247. -- part name: Rehearsal Dinner
  248. ----- HyperTalk script -----
  249. on mouseUp
  250.   ask "Please Enter Amount" with "(e.g 500, 1000, 10000, etc ...)"
  251.   if it is empty then exit mouseUp
  252.   if it is "(e.g 500, 1000, 10000, etc ...)" then
  253.     beep
  254.     answer "You didn't enter a number!" with "Oops"
  255.     exit mouseUp
  256.   end if
  257.   lock screen
  258.   push cd
  259.   put it into dollar4
  260.   put empty into fld 2
  261.   put it into fld 4
  262.   put it into fld 18
  263.   Repeat with x = 3 to 6
  264.     add fld x to fld 2
  265.   end Repeat
  266.   go cd Rehearsal1 of stack Eventcards
  267.   put dollar4 into fld 14
  268.   pop cd
  269.   Repeat with x = 5 to 10
  270.     hide cd btn x
  271.   end Repeat
  272.   unlock screen with dissolve
  273.   put 0 into sumUp
  274.   Repeat with x = 13 to 17
  275.     add fld x to sumUp
  276.   end Repeat
  277.   if sumUp <> fld 18 then answer "Please correct DINNER allocations!"
  278.   beep
  279. end mouseUp
  280.  
  281.  
  282.  
  283. -- part 25 (button)
  284. -- low flags: 80
  285. -- high flags: A004
  286. -- rect: left=4 top=278 right=297 bottom=122
  287. -- title width / last selected line: 0
  288. -- icon id / first selected line: 0 / 0
  289. -- text alignment: 1
  290. -- font id: 0
  291. -- text size: 9
  292. -- style flags: 0
  293. -- line height: 12
  294. -- part name: Bridal Shower
  295. ----- HyperTalk script -----
  296. on mouseUp
  297.   ask "Please Enter Amount" with "(e.g 500, 1000, 10000, etc ...)"
  298.   if it is empty then exit mouseUp
  299.   if it is "(e.g 500, 1000, 10000, etc ...)" then
  300.     beep
  301.     answer "You didn't enter a number!" with "Oops"
  302.     exit mouseUp
  303.   end if
  304.   lock screen
  305.   push cd
  306.   put it into dollar3
  307.   put it into fld 2
  308.   put it into fld 3
  309.   put it into fld 12
  310.   Repeat with x = 4 to 6
  311.     add fld x to fld 2
  312.   end Repeat
  313.   go cd Shower1 of stack Eventcards
  314.   put dollar3 into fld 14
  315.   pop cd
  316.   Repeat with x = 5 to 10
  317.     hide cd btn x
  318.   end Repeat
  319.   unlock screen with dissolve
  320.   put 0 into sumUp
  321.   Repeat with x = 7 to 11
  322.     add fld x to sumUp
  323.   end Repeat
  324.   if sumUp <> fld 12 then answer "Please correct SHOWER allocations!"
  325.   beep
  326. end mouseUp
  327.  
  328.  
  329.  
  330. -- part 26 (button)
  331. -- low flags: 80
  332. -- high flags: 2000
  333. -- rect: left=3 top=299 right=319 bottom=45
  334. -- title width / last selected line: 0
  335. -- icon id / first selected line: 0 / 0
  336. -- text alignment: 1
  337. -- font id: 0
  338. -- text size: 9
  339. -- style flags: 0
  340. -- line height: 12
  341. -- part name: Cancel
  342. ----- HyperTalk script -----
  343. on mouseUp
  344.   lock screen
  345.   Repeat with x = 5 to 10
  346.     hide cd btn x
  347.   end Repeat
  348. end mouseUp
  349.  
  350.  
  351.  
  352. -- part contents for background part 17
  353. ----- text -----
  354. BUDGET PROFILE
  355.  
  356. -- part contents for background part 68
  357. ----- text -----
  358.                                   WELCOME TO THE MAC WEDDING HELP SYSTEM. 
  359. When you are done reading this screen, click in this field to hide it from view.  Thank You.
  360.  
  361. Here's an explanation of the BUDGET PROFILE:
  362.  
  363. The Budget Profile allows you to set overall spending limits on major events and allocate that expense on a percentage basis to responsible parties.  Editing can be done directly on this card allowing you to change or delete existing budget information. 
  364.  
  365. After entering  the dollar  limits, click on the Done button. Then proceed to enter detail allocations for each category. After that you may  click on the % button which will cause the program to test your $ inputs against the limits previously set  and then convert all expense data to percent values. If you are over the limit it will tell you in which category the overage exists and allow you to correct the input before proceeding.
  366.  
  367. After the dollar amounts have been entered and set you can cycle between % and $ readouts in the Expense Allocation Table. The dollar amounts only, in the Expense Allocation Table, can also be changed at any time.
  368.  
  369. If you wish to see a graphic representation of expense allocations, in any category, click the PIE CHART button in the lower right-hand corner of the screen. A pop-up menu will appear from which you can select the category you wish to display. A PRINT button allows you to produce a hard copy of the selected % Pie Chart.
  370.  
  371. The REPORTS Button allows you to print a copy of the screen.
  372.  
  373.  
  374. -- part contents for card part 14
  375. ----- text -----
  376. Please enter $ amount for each category 
  377. (e.g. 500, 1500), then click "Done" button
  378.  
  379. -- part contents for background part 19
  380. ----- text -----
  381. 250
  382.  
  383. -- part contents for background part 20
  384. ----- text -----
  385. 250
  386.  
  387. -- part contents for background part 21
  388. ----- text -----
  389. 1500
  390.  
  391. -- part contents for background part 22
  392. ----- text -----
  393. 6500
  394.  
  395. -- part contents for background part 18
  396. ----- text -----
  397. 8500
  398.  
  399. -- part contents for background part 23
  400. ----- text -----
  401. 150
  402.  
  403. -- part contents for background part 33
  404. ----- text -----
  405. 100
  406.  
  407. -- part contents for background part 40
  408. ----- text -----
  409. 75
  410.  
  411. -- part contents for background part 41
  412. ----- text -----
  413. 175
  414.  
  415. -- part contents for background part 44
  416. ----- text -----
  417. 1000
  418.  
  419. -- part contents for background part 45
  420. ----- text -----
  421. 250
  422.  
  423. -- part contents for background part 48
  424. ----- text -----
  425. 250
  426.  
  427. -- part contents for background part 50
  428. ----- text -----
  429. 4500
  430.  
  431. -- part contents for background part 51
  432. ----- text -----
  433. 1500
  434.  
  435. -- part contents for background part 54
  436. ----- text -----
  437. 500
  438.  
  439. -- part contents for background part 37
  440. ----- text -----
  441. 250
  442.  
  443. -- part contents for background part 43
  444. ----- text -----
  445. 250
  446.  
  447. -- part contents for background part 49
  448. ----- text -----
  449. 1500
  450.  
  451. -- part contents for background part 55
  452. ----- text -----
  453. 6500